package com.atguigu.gmall.pay.service;

import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 支付的service
 */
public interface PayService {
    /**
     * 生成支付二维码
     * @param  map
     * @return
     */
    public Map<String,String> createPayImg(@RequestParam Map<String,String> map);

    /**
     * 查询支付结果
     * @param orderId
     * @return
     */
    public  Map<String,String> getPayResult(Long orderId);

    /**
     * 关闭交易
     * @param orderId
     * @return
     */
    public Boolean closePay(Long orderId);
}
